
var mySwiper1  = new Swiper( ".my-container", {
    // 添加按钮切换事件
    navigation: {
          nextEl: '.swiper-button-next',
          prevEl: '.swiper-button-prev',
    },   
    // 自动播放 
    autoplay : true,
    // 支持无限滚动
    loop : true,
    // 分页器配置
    pagination : {
          el : ".swiper-pagination",
          clickable  : true,
    },
    effect:"fade",
 renderBullet: function (index, className) {
          switch(index){
            case 0:text='1';break;
            case 1:text='2';break;
            case 2:text='3';break;
            case 3:text='4';break;
            case 4:text='5';break;
            case 4:text='6';break;
          }
          return '<span class="' + className + '">' + text + '</span>';
  }

} )

for(var i = 0 ; i < mySwiper1.pagination.bullets .length ; i ++){
    mySwiper1.pagination.bullets[i].onmouseover = function(){
          this.click();
    }
}

   





